package com.yuebao.result;

import javax.servlet.http.HttpServletResponse;

import java.io.IOException;

import static org.apache.catalina.manager.Constants.CHARSET;

public class HttpResponse {
    
    public static final String FAIL="<span>403 下单失败</span>";
    
    public HttpResponse() {
    }
    
    
    public static void HttpResponse(String form, HttpServletResponse httpResponse) throws IOException {
        httpResponse.setContentType("text/html;charset=" + CHARSET);
        httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
        httpResponse.getWriter().flush();
        httpResponse.getWriter().close();
       
    }
   
}
